<?php
/**
 * xushuhui
 * 2017/8/19
 * 10:16
 */

namespace app\index\model;


class Activity extends BaseModel
{
    public function reward()
    {
        return $this->hasMany('Reward','activity_id')->where("uid",">",0);
    }

     public function wxuser()
    {
        return $this->hasOne('Wxuser', 'uid', 'uid');
    }
}